import Vue from 'vue'
import VueRouter from 'vue-router'
 



Vue.use(VueRouter)

const routes = [
  {
    path: '/myClass',
    name: 'myClass',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import( /* webpackChunkName: "myClass" */ '../views/Class.vue')
  },
  {
    path: '/cdong',
    name: 'Cdong',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import( /* webpackChunkName: "Cdong" */ '../views/Cdong.vue')
  },
  {
    path: '/ydu',
    name: 'Ydu',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import( /* webpackChunkName: "Ydu" */ '../views/Ydu.vue')
  },
  {
    path: '/',
    name: 'Index',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import( /* webpackChunkName: "Index" */ '../views/Index.vue')
  },
  {
    path: '/laos',
    name: 'Laos',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import( /* webpackChunkName: "Laos" */ '../views/Laos.vue')
  },
  
  {
    path: '/Collect',
    name: 'Collect',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import( /* webpackChunkName: "Collect" */ '../views/PersonalCenter/Collect.vue')
  },
  {
    path: '/Name',
    name: 'Name',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import( /* webpackChunkName: "Name" */ '../views/PersonalCenter/Name.vue')
  },
  {
    path: '/Password',
    name: 'Password',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import( /* webpackChunkName: "Password" */ '../views/PersonalCenter/Password.vue')
  },
  {
    path: '/Account',
    name: 'Account',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import( /* webpackChunkName: "Account" */ '../views/PersonalCenter/Account.vue')
  },
  {
    path: '/Indent',
    name: 'Indent',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import( /* webpackChunkName: "Indent" */ '../views/PersonalCenter/Indent.vue')
  },
  {
    path: '/Download',
    name: 'Download',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import( /* webpackChunkName: "Download" */ '../views/PersonalCenter/Download.vue')
  },
  {
    path: '/WeiPersonal',
    name: 'WeiPersonal',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import( /* webpackChunkName: "WeiPersonal" */ '../views/WeiPersonal.vue')
  },
  // {
  //   path: '/Personal',
  //   name: 'Personal',
  //   // route level code-splitting
  //   // this generates a separate chunk (about.[hash].js) for this route
  //   // which is lazy-loaded when the route is visited.
  //   component: () => import( /* webpackChunkName: "Personal" */ '../views/Personal.vue')
  // },
  {
    path: '/Message',
    name: 'Message',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import( /* webpackChunkName: "Message" */ '../views/PersonalCenter/Message.vue')
  },
  //我的课程提醒界面路由
  {
    path: '/Remind',
    name: 'Remind',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import( /* webpackChunkName: "Remind" */ '../views/PersonalCenter/Remind.vue')
  },
  //我的徽章界面路由
  {
    path: '/Medal',
    name: 'Medal',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import( /* webpackChunkName: "Medal" */ '../views/PersonalCenter/Medal.vue')
  },
  //我的地址管理路由
  {
    path: '/Ipam',
    name: 'Ipam',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import( /* webpackChunkName: "Ipam" */ '../views/PersonalCenter/Ipam.vue'),
  },
  //编辑地址路由
  {
    path: '/EditAddress',
    name: 'EditAddress',
    component: () => import( /* webpackChunkName: "EditAddress" */ '../views/PersonalCenter/EditAddress.vue')
  },
  //修改或删除地址路由
  {
    path: '/updelAddress/:id',
    name: 'updelAddress',
    component: () => import( /* webpackChunkName: "updelAddress" */ '../views/PersonalCenter/updelAddress.vue'),
    props:true
  },
  //设置界面路由
  {
    path: '/Setting',
    name: 'Setting',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import( /* webpackChunkName: "Setting" */ '../views/PersonalCenter/Setting.vue')
  },
  //关于我们的路由
  {
    path: '/aboutUs',
    name: 'aboutUs',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import( /* webpackChunkName: "Setting" */ '../views/PersonalCenter/setContent/aboutUs.vue')
  },
  //手机存储路由
  {
    path: '/phStore',
    name: 'phStore',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import( /* webpackChunkName: "Setting" */ '../views/PersonalCenter/setContent/phStore.vue')
  },
  //隐私政策
  {
    path: '/privPoli',
    name: 'privPoli',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import( /* webpackChunkName: "Setting" */ '../views/PersonalCenter/setContent/privPoli.vue')
  },
  //SDK目录
  {
    path: '/sdkCata',
    name: 'sdkCata',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import( /* webpackChunkName: "Setting" */ '../views/PersonalCenter/setContent/sdkCata.vue')
  },
  //用户协议
  {
    path: '/userAgrees',
    name: 'userAgrees',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import( /* webpackChunkName: "Setting" */ '../views/PersonalCenter/setContent/userAgrees.vue')
  },
  //联系客服界面路由
  {
    path: '/Service',
    name: 'Service',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import( /* webpackChunkName: "Service" */ '../views/PersonalCenter/Service.vue')
  },
  {
    path: '/register',
    name: 'Register',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import( /* webpackChunkName: "medal" */ '../views/Register.vue')
  },
  {
    path: '/login',
    name: 'Login',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import( /* webpackChunkName: "medal" */ '../views/Login.vue')
  },


  {
    path: '/slwords',
    name: 'SLwords',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import( /* webpackChunkName: "SLwords" */ '../views/Words/SLwords.vue')
  },


{
    path: '/syck',
    name: 'Syck',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import( /* webpackChunkName: "Syck" */ '../views/PersonalCenter/setContent/Syck.vue')
  },


]

const router = new VueRouter({
  routes,
})

export default router